import { MSPDITransfer } from "./mspdi-transfer";
import { TransferType } from "./transfer.type";

export class Transfer {
    constructor(type) {
        this.type = type;
    }

    convert(data) {
        switch (this.type) {
            case TransferType.MSPDI:
                return MSPDITransfer.convert(data);
            default:
                console.error('no good transfer has been found');
                break;
        }
    }
}